package com.pj.wisdomlogistics.mvp.model;


import com.pj.wisdomlogistics.entity.CarPoritionInfo;
import com.pj.wisdomlogistics.entity.response.BaseResponse;
import com.pj.wisdomlogistics.mvp.frame.MvpModel;

import rx.Observable;


public class CarPoritionModel extends MvpModel {
    public Observable<BaseResponse<CarPoritionInfo>> submitCarApply() {
        return mApiService.findCarAndDriver();
    }

    public Observable<BaseResponse> carApplyAllot(String userID,
                                                  String carApplyID,
                                                  String state,
                                                  String driverName,
                                                  String driverTel,
                                                  String carModel,
                                                  String carNum,
                                                  String driverID,
                                                  String carID ,
                                                  String comment) {
        return mApiService.carApplyAllot(
                userID,
                carApplyID,
                state,
                driverName,
                driverTel,
                carModel,
                carNum,
                driverID,
                carID ,
                comment);
    }
}
